package com.bingxue.edu.management.education.model.entity;

import com.bingxue.edu.common.enums.TermEnum;
import com.bingxue.edu.framework.common.model.BusinessEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 排课模板
 *
 * @author zq
 * @since 2024/08/22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("edu_arrange_template")
public class ArrangeTemplate extends BusinessEntity {

    @Schema(description = "模板名称（用于家长展示）")
    private String name;

    @Schema(description = "完整名称（用于内部展示）")
    private String fullName;

    @Schema(description = "上课年份")
    private Integer classYear;

    @Schema(description = "学期")
    private TermEnum term;

    @Schema(description = "年级")
    private String grade;

    @Schema(description = "课次数量")
    private Integer lessonCount;

    @Schema(description = "开始时间")
    private LocalDate startDate;

    @Schema(description = "结束时间")
    private LocalDate endDate;
}
